Learn R Programming

chronosphere (version 0.4.1)

[[<-,XArray,ANY,ANY,ANY-method: Replace RasterLayers in a RasterArray object and Spatial* objects in a SpatialArray object.

Description

Double bracket '[[' refers to layers' name in the RasterStack of the RasterArray and the SpatialStack of the SpatialArray. Use single brackets to replace elements based on their position in the RasterArray/SpatialArray.

Usage

# S4 method for XArray,ANY,ANY,ANY
[[(x, i) <- value

# S4 method for SpatialArray,ANY,missing,SpatialStack [[(x, i) <- value

Value

None.

Arguments

x

RasterArray or SpatialArray object.

i

subscript of layers to replace.

value

character vector.